package com.chaochis.springboottestdemo.service.impl;

import com.chaochis.springboottestdemo.mapper.UserMapper;
import com.chaochis.springboottestdemo.model.mapperModel.UserVo;
import com.chaochis.springboottestdemo.service.UserService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("userService")
public class UserServiceImpl implements UserService {
  private final UserMapper userMapper;

  public UserServiceImpl(UserMapper userMapper) {
    this.userMapper = userMapper;
  }

  @Override
  public List<UserVo> getAllList(UserVo userParam) {
    return this.userMapper.getUserList(userParam);
  }
}
